/******************************************************************************

                                COST.H

  Title:        Include file for code calculationg cost functions. 
  Author:       Hanna Szoke
  Date:         10/27/97
  Function:     This file contains data structures used in the 
		calculation of cost functions (cost.c) and in the
		calling programs (Back and Solve). 

******************************************************************************/


extern	char    cost_filename[] ;

extern	COMPLEX *Oar ;		/* Array for holding FFT transforms. */
extern	real	*Phases ;	/* for holding Oar phases in prep_grad	*/
extern	COMPLEX *R ;    /* Model structure factors for known+found atoms */
extern	COMPLEX	*Fc0 ;	/* "target" for Back & for phase ext in Solve */

extern	real	sp_min ;	/* for evaluating significance of costs */
extern	real	norm_fac ;	/* 1/sqrt(AveWt) */
extern	real	hkl_cost ;	/* current hkl cost */

